package com.phiture.erp.produce.core.pojo.dto;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 生产任务分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ErpProductionTaskPageReqDTO extends PageParam {

    @Schema(description = "销售单号")
    private String saleOrderNo;

    @Schema(description = "物料名称")
    private String materialName;

    @Schema(description = "任务单编号")
    private String productionTaskNo;

    @Schema(description = "主计划编码", example = "12077")
    private String productMainPlanNo;

    @Schema(description = "物料ID", example = "7434")
    private Long materialId;

    @Schema(description = "优先级")
    private Integer priority;

    @Schema(description = "状态", example = "2")
    private Integer[] status;

    @Schema(description = "是否可入库", example = "0")
    private Integer isEnableIn = 0;

    @Schema(description = "开工时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] startDate;

    @Schema(description = "完工时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] endDate;
}